package org.springblade.tms.global.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author: wzq
 * @className: EnumSelect
 * @createDate: 2022/3/11
 * @description: 枚举下拉
 */
@Data
@Builder
@ApiModel
public class EnumSelect {
	/**
	 * 下拉key
	 */
	@ApiModelProperty("下拉keyword")
	private String keyWord;

	/**
	 * 下拉选项
	 */
	@ApiModelProperty("下拉选项")
	private List<EnumSelectItem> result;


	@Data
	@Builder
	public static class EnumSelectItem {

		@ApiModelProperty("key")
		private String key;

		@ApiModelProperty("value")
		private String value;
	}
}
